﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ivory.ICommand
{
    public class CommandCenter
    {
        //Fields 
		private CommandLibrary _CmdLibrary;
        public CommandLibrary CmdLibrary
		{
            get { return _CmdLibrary; }
            set { _CmdLibrary = value; }
		} 
		
        //Construct
        public CommandCenter()
        {
            CmdLibrary = new CommandLibrary();
        }

        //Methods
        public void AddCommand(string cmdName, Delegate cmd)
        {
            CmdLibrary.Add(cmdName, cmd);
        }

        public void Execute(string cmdName, object[] param)
        {
            throw new NotImplementedException("");
        }
    }
}
